>From bounce-amos-list--1218-mcox=access.digex.net@onelist.com Tue Sep 22 03:33:23 1998 Received: from onelist.com (pop.onelist.com [209.207.164.31]) by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id DAA16958 for ; Tue, 22 Sep 1998 03:33:23 -0400 (EDT) Received: (qmail 626 invoked by alias); 22 Sep 1998 07:36:04 -0000 Received: (qmail 620 invoked from network); 22 Sep 1998 07:36:01 -0000 Received: from unknown (HELO boober.lineone.net) (194.75.152.84) by pop.onelist.com with SMTP; 22 Sep 1998 07:36:01 -0000 Received: from belalseman (host5-171-235-170.btinternet.com [195.171.235.170]) by boober.lineone.net (8.8.5/8.8.0) with SMTP id IAA31168 for ; Tue, 22 Sep 1998 08:33:16 +0100 (BST) Message-ID: <000501bde5fa$e820f2a0$aaebabc3@belalseman> From: "Infinity Productions" To: Date: Tue, 15 Sep 1998 08:29:52 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com Delivered-To: mailing list amos-list@onelist.com Precedence: bulk Reply-to: amos-list@onelist.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00FE_01BDE083.026D5860" Subject: [amos-list] Re: Hey! Ne1 Like Joysticks? Status: O X-Status: From: "Infinity Productions" This is a multi-part message in MIME format. ------=_NextPart_000_00FE_01BDE083.026D5860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey, are you aware that the following SHORT section of code does EXACTLY = the same thing, only faster and with less stupid excess code? =20 J=3DJoy(1) X=3DSgn(J and 8)-Sgn(J and 4) Y=3DSgn(J and 2)-Sgn(J and 1) -----Original Message----- From: John Glanville To: amos-list@onelist.com Date: 01 September 1998 23:36 Subject: [amos-list] Hey! Ne1 Like Joysticks? =20 =20 Hey! Look! At this=85 Ne1 want a piece of code that turns the = joystick input 2 + or -.. Eg. J=3DJoy(1) ;J=3D2 ; Joystick is Down! K=3DJ-2 ;k=3D0 P#=3DJ/4.0 ;P#=3D0.5 P=3DP# ;P=3D0 I=3DSgn(J) ;I=3D1 if P#=3DP ;This isn=92t true 0.5<>0 X=3DSgn(J-6)*I End If If P=3D0 ;This is true Y=3DI*(K+K+1) ;Y=3D1 End If=20 Say you push the joystick up it returns y=3D-1 X=3D0! If You Push Joystick Left then X=3D-1 Y=3D0 If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1 You Could use this in a game!! Something similar 2 tron! Where U only need the direction in +1=92s or =961=92s! I=92ve used it and found it gets rid of annoying and slow If = statements!!!! Or U could just Delete this as it is a pointless waste of Virtual = Paper! Unless You have printed it in which case! Help! ------=_NextPart_000_00FE_01BDE083.026D5860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey, are you aware that the = following SHORT=20 section of code does EXACTLY the same thing, only faster and with less = stupid=20 excess code?
 
    J=3DJoy(1)
    = X=3DSgn(J and=20 8)-Sgn(J and 4)
    Y=3DSgn(J and 2)-Sgn(J and=20 1)
-----Original = Message-----
From:=20 John Glanville <John.Glanville@btinternet.c= om>
To:=20 amos-list@onelist.com <amos-list@onelist.com>
Date:=20 01 September 1998 23:36
Subject: [amos-list] Hey! Ne1 = Like=20 Joysticks?

Hey! Look! At this… Ne1 want a piece of code that turns = the=20 joystick input 2 + or -..

Eg.

J=3DJoy(1)    ;J=3D2 ; Joystick is Down!

K=3DJ-2       ;k=3D0

P#=3DJ/4.0    ;P#=3D0.5

P=3DP#        ;P=3D0

I=3DSgn(J)    ;I=3D1

if P#=3DP     ;This isn’t true = 0.5<>0

X=3DSgn(J-6)*I

End If

If P=3D0      ;This is true

Y=3DI*(K+K+1) ;Y=3D1

End If

Say you push the joystick up it returns y=3D-1 X=3D0!

If You Push Joystick Left then X=3D-1 Y=3D0

If You Push Joystick left Diagonally Up X=3D-1 and Y=3D-1

You Could use this in a game!! Something similar 2 tron!

Where U only need the direction in +1’s or = –1’s!

I’ve used it and found it gets rid of annoying and slow If=20 statements!!!!

Or U could just Delete this as it is a pointless waste of Virtual = Paper!=20 Unless You have printed it in which case!=20 Help!

------=_NextPart_000_00FE_01BDE083.026D5860--